package com.rm.zeyou.mapper;

import com.rm.zeyou.entity.TechnicianBack;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.rm.zeyou.vo.response.TechnicianBackResponseVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * <p>
 * 技师银行卡 Mapper 接口
 * </p>
 *
 * @author YanYang
 * @since 2025-03-12 15:55:09
 */
@Mapper
public interface TechnicianBackMapper extends BaseMapper<TechnicianBack> {

    List<TechnicianBackResponseVo> selectTechnicianBackList(@Param("tid") Long tid);

    @Select("select count(*) from  t_technician_back where back_idcard = #{backldCard}")
    Integer selectIsBindBack(@Param("backldCard") String backldCard);
}
